#ifndef FHE_PRIMS_RECT_H
#define FHE_PRIMS_RECT_H

#include <fhe/prims/IRenderable.h>
#include <fhe/prims/Material.h>
#include <fhe/prims/IRenderContext.h>
#include <fhe/math/Vec.h>
#include <fhe/core/Node.h>

namespace fhe
{
  namespace core
  {
    template <size_t D, typename T>
    class Rect : public Node, public IRenderable<D,T>
    {
    public:
      Vec<D,T> size;
      Material material;
      
      void render( IRenderContext<D,T>* context )
      {
        context->rect( size, material );
      }
      
      void unrender( IRenderContext<D,T>* context )
      {
      }
    };
    
    typedef Rect<3,double> Rect3d;
  }
}

#endif
